﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.ScheduleJob.Manager;
using T.FAS.Runtime.ScheduleJob.SPI;

namespace T.FAS.Runtime.ScheduleJob.Service
{
    public class DefaultScheduleJobStateNotifier:IScheduleJobStateNotifier
    {
        public void Notice(ScheduleJobExecContext context, ScheduleJobStateNoticeData data)
        {
            ScheduleJobInstanceManager.GetInstance().UpdateScheduleJobInstanceState(context.Instance.ID, data);
        }
    }
}
